<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "mylogs".
 *
 * @property int $id
 * @property int $operatorUserid 操作者用户编号
 * @property int $operatorYgid 操作者员工编号
 * @property string $operatorYggh 操作者工号
 * @property string $operatorUsername 操作者用户
 * @property string $operatorZuoxi 操作者坐席
 * @property string $operateTime 操作时间
 * @property string $operateContent 操作内容
 * @property string $operateIp 操作ip
 * @property string $operate 主要操作
 * @property string $color 颜色
 */
class Mylogs extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'mylogs';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['operatorUserid', 'operatorYgid'], 'integer'],
            [['operateContent'], 'string'],
            [['operatorYggh', 'operatorUsername', 'operatorZuoxi'], 'string', 'max' => 40],
            [['operateTime'], 'string', 'max' => 13],
            [['operateIp'], 'string', 'max' => 16],
            [['operate'], 'string', 'max' => 255],
            [['color'], 'string', 'max' => 20],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'operatorUserid' => '操作者用户编号',
            'operatorYgid' => '操作者员工编号',
            'operatorYggh' => '操作者工号',
            'operatorUsername' => '操作者用户',
            'operatorZuoxi' => '操作者坐席',
            'operateTime' => '操作时间',
            'operateContent' => '操作内容',
            'operateIp' => '操作ip',
            'operate' => '主要操作',
            'color' => '颜色',
        ];
    }
}
